package com.chance.cc.crawler.development.command.schedule.pcauto;

import com.chance.cc.crawler.development.command.schedule.CrawlerJobScheduleCommand;
import org.junit.Test;

/**
 * @author lt
 * @version 1.0
 * @date 2021-01-13 13:04:09
 * @email okprog@sina.com
 */
public class PcAutoCrawlerJobSchedule {
    private static CrawlerJobScheduleCommand crawlerJobScheduleCommand =
            new CrawlerJobScheduleCommand("192.168.1.215",9589);
    private static String device_name = "crawler_dev_host";

    @Test
    public void deleteJob(){
        crawlerJobScheduleCommand.deleteCrawlerJob("pcauto-forum_release-interaction-realtime-cron",device_name);
    }

    @Test
    public void pcAutoArticleJobScheduler(){
//        crawlerJobScheduleCommand.publishCrawlerJob("pcauto-article-realtime-cron",device_name);
        crawlerJobScheduleCommand.republishCrawlerJob("pcauto-article-realtime-cron",device_name);
    }

    @Test
    public void pcAutoArticleTraceJobScheduler(){
//        crawlerJobScheduleCommand.publishCrawlerJob("pcauto-article-trace-realtime-cron",device_name);
        crawlerJobScheduleCommand.republishCrawlerJob("pcauto-article-trace-realtime-cron",device_name);
    }

    @Test
    public void pcAutoForumReleaseJobScheduler(){
//        crawlerJobScheduleCommand.publishCrawlerJob("pcauto-forum_release-realtime-cron",device_name);
//        crawlerJobScheduleCommand.republishCrawlerJob("pcauto-forum_release-realtime-cron",device_name);
        crawlerJobScheduleCommand.deleteCrawlerJob("pcauto-forum_release-realtime-cron",device_name);
    }

    @Test
    public void pcAutoForumReplyJobScheduler(){
//        crawlerJobScheduleCommand.publishCrawlerJob("pcauto-forum_reply-realtime-cron",device_name);
        crawlerJobScheduleCommand.republishCrawlerJob("pcauto-forum_reply-realtime-cron",device_name);
    }

    @Test
    public void pcAutoForumInteractionJobScheduler(){
//        crawlerJobScheduleCommand.publishCrawlerJob("pcauto-forum_release-interaction-realtime-cron",device_name);
        crawlerJobScheduleCommand.republishCrawlerJob("pcauto-forum_release-interaction-realtime-cron",device_name);
    }

    @Test
    public void pcAutoVideoJobScheduler(){
//        crawlerJobScheduleCommand.publishCrawlerJob("pcauto-video-realtime-cron",device_name);
        crawlerJobScheduleCommand.republishCrawlerJob("pcauto-video-realtime-cron",device_name);
    }

    @Test
    public void pcAutoVideoTraceJobScheduler(){
//        crawlerJobScheduleCommand.publishCrawlerJob("pcauto-video-trace-realtime-cron",device_name);
        crawlerJobScheduleCommand.republishCrawlerJob("pcauto-video-trace-realtime-cron",device_name);
    }

    @Test
    public void pcAutoPraiseJobScheduler(){
//        crawlerJobScheduleCommand.publishCrawlerJob("pcauto-praise-realtime-cron",device_name);
        crawlerJobScheduleCommand.republishCrawlerJob("pcauto-praise-realtime-cron",device_name);
    }

    @Test
    public void pcAutoPraiseTraceJobScheduler(){
//        crawlerJobScheduleCommand.publishCrawlerJob("pcauto-praise-trace-realtime-cron",device_name);
        crawlerJobScheduleCommand.republishCrawlerJob("pcauto-praise-trace-realtime-cron",device_name);
    }
}
